/*************************************************************************
    > File Name: isUnique.cpp
    > Author: zhangxu
    > Mail:
    > Created Time: 六  9/ 7 09:28:30 2024
 ************************************************************************/

#include <bitset>
#include <iostream>
using namespace std;

bool isUnique(string str) {
  bitset<256> hash_map;
  for (int i = 0; i < str.length(); i++) {
    if (hash_map[str[i]]) {
      return false;
    }
    hash_map[str[i]] = 1;
  }
  return true;
}

int main() {
  string ss{"abcdefghg"};
  if (isUnique(ss)) {
    cout << "OK" << endl;
  } else {
    cout << "Failed" << endl;
  }

  return 0;
}